﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.IO;
using cancerportal.Models;

namespace cancerportal.Controllers
{
    public class fileReader
    {
        public string content;
        public string getFileContent()
        {
            content = "";
            string[] files = Directory.GetFiles("Corpus");
            string[] lexical;
            foreach (string f in files)
            {
                content = File.ReadAllText(f);
                lexical = content.Split(' ');
                foreach (string lex in lexical)
                {
                    string[] arrTemp;
                    arrTemp = lex.Split('/');
                }
            }
            return content;
        }
    }
}